package task09;

import java.util.Scanner;

/**
 * @author Administrator
 * 任意输入一整数，求它的位数
 */
public class Test09_02 {
    public static void main(String[] args) {
        System.out.println("请输入一个多位数：");
        Scanner scanner=new Scanner(System.in);
        int num=scanner.nextInt();

//        count保存位数
        int count=0;
        while(num>0){
          num=num/10;
          count++;
        }
        System.out.println(count);

    }
}
